<template>
  <div class="albums" ref="wrapper">
    <div class="content">
      <header>
        <albums-top-bar></albums-top-bar>
      </header>
      <main>
        <keep-alive>
          <albums-list></albums-list>
        </keep-alive>
      </main>
      <Footer></Footer>
    </div>
  </div>
</template>

<script>
import Footer from '../components/Footer';
import AlbumsTopBar from '../components/AlbumsTopBar';
import AlbumsList from '../components/AlbumsList';
import BScroll from '@better-scroll/core';
import PullUp from '@better-scroll/pull-up';
import MouseWheel from "@better-scroll/mouse-wheel";

export default {
  name:"albums",
  components:{
    AlbumsTopBar,
    AlbumsList,
    Footer
  },
  mounted(){
    this.$nextTick(()=>{
      let bs = new BScroll(this.$refs['wrapper'],{
      pullUpLoad:true,
      scrollY:true,
      probeType: 3,
      click: true,
      mouseWheel: {
        speed: 20,
        invert: false,
        easeTime: 300
      }
      })
    })
  }
}
</script>

<style lang="scss" scoped>
  .albums{
    width:100%;
    height:5rem;
    .content{
      width:100%;
      height:31.5rem;
      header{
        width:100%;
        height: 0.24rem;
        margin:0.1rem 0;
        padding:0 0.14rem;
        line-height: 0.24rem;
        display: flex;
        position:relative;
        justify-content: space-between;
      }
    }
  }
</style>